package com.ap.vogellatutorial;

public class CreateXML_with_STAX {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String newXMLFileName=CreateXML_with_STAX.class.getResource("resources").getPath()+"/config.xml";
		
			System.out.println("Creating new xml with stax....");
			StaxWriter writer=new StaxWriter();
			System.out.println(newXMLFileName);
			writer.setFile(newXMLFileName); 
			
			writer.saveConfig(); // will be saved in directory  where *.class files are stored
	}

}
